﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using Skyworth.CRM.Service.IBLL;
using Skyworth.CRM.Service.IDAL;

namespace Skyworth.CRM.BLL
{
   public  class SalesStockBLL:ISalesStockBLL
    {
         private ISalesStockDAL _salesStockDAL;

         public SalesStockBLL(ISalesStockDAL salesStockDAL)
        {
            _salesStockDAL = salesStockDAL;
        }
       public DataTable GetSalesStockByPage(string strWhere, string strOrderBy, int pageIndex, int pageSize, out int recordCount, out int pageCount)
       {
           return _salesStockDAL.GetSalesStockByPage(strWhere, strOrderBy, pageIndex, pageSize, out recordCount,
                                                     out pageCount);
       }

       public DataTable GetDetailedDataByPage(string strWhere, string strOrderBy, int pageIndex, int pageSize, out int recordCount, out int pageCount)
       {
           return _salesStockDAL.GetDetailedDataByPage(strWhere, strOrderBy, pageIndex, pageSize, out recordCount,
                                                       out pageCount);
       }

       public string Export2Excel(string strWhere)
       {
           return _salesStockDAL.Export2Excel(strWhere);
       }
    }
}
